package com.shiroha.user.mapper;

import com.mybatisflex.core.BaseMapper;
import com.shiroha.user.pojo.GroupMember;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.UUID;

@Mapper
public interface GroupMemberMapper extends BaseMapper<GroupMember> {
    int setAdminForGroup(@Param("userId") UUID userId, @Param("groupId") Long groupId, @Param("memberId") UUID memberId);

    int deleteGroupMemberFromGroup(@Param("userId") UUID userId, @Param("groupId") Long groupId, @Param("memberId") UUID memberId);
}
